package com.example.jdk11.demo.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class TestController {

    @RequestMapping("/thymeleaf")
    public String index(Model model){
        model.addAttribute("message","Hello Spring-Thymeleaf！");
        return "index";
    }
}